package com.ruoyi.workLogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单操作日志对象 wdm_work_logs
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class WorkLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单记录ID（主键） */
    private Long logId;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long workId;

    /** 工单操作 */
    @Excel(name = "工单操作")
    private String operation;

    /** 操作前状态 */
    @Excel(name = "操作前状态")
    private String beforeStatus;

    /** 操作后状态 */
    @Excel(name = "操作后状态")
    private String afterStatus;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long userId;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operatorName;

    /** 变更详情 */
    @Excel(name = "变更详情")
    private String changeDetails;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除 */
    private String delFlag;

    /** 版本号 */
    private Long version;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setWorkId(Long workId) 
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }

    public void setOperation(String operation) 
    {
        this.operation = operation;
    }

    public String getOperation() 
    {
        return operation;
    }

    public void setBeforeStatus(String beforeStatus) 
    {
        this.beforeStatus = beforeStatus;
    }

    public String getBeforeStatus() 
    {
        return beforeStatus;
    }

    public void setAfterStatus(String afterStatus) 
    {
        this.afterStatus = afterStatus;
    }

    public String getAfterStatus() 
    {
        return afterStatus;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }

    public void setChangeDetails(String changeDetails) 
    {
        this.changeDetails = changeDetails;
    }

    public String getChangeDetails() 
    {
        return changeDetails;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("workId", getWorkId())
            .append("operation", getOperation())
            .append("beforeStatus", getBeforeStatus())
            .append("afterStatus", getAfterStatus())
            .append("userId", getUserId())
            .append("operatorName", getOperatorName())
            .append("changeDetails", getChangeDetails())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
